//
//  DDTagDB.m
//  dingdang
//
//  Created by 阮 沧晖 on 15/7/14.
//  Copyright (c) 2015年 阮 沧晖. All rights reserved.
//

#import "DDTagDB.h"

@implementation DDTagDB

-(BOOL)save
{
    NSObject *object = [DDTagDB searchSingleWithWhere:[NSString stringWithFormat:@"rowid=%ld",(long)self.rowid] orderBy:nil];
    if (object) {
        return [DDTagDB updateToDB:self where:nil];
    }else{
        [self saveToDB];
        return YES;
    }
}
@end
